package com.bestseller.proxy;

import java.lang.reflect.Method;

public class MyAdviceImpl implements MyAdvice {
	long start;
	@Override
	public void before(Method method) {
		System.out.println(method.getName()+"程序开始执行");
		start=System.currentTimeMillis();
	}

	@Override
	public void after(Method method) {
		long end=System.currentTimeMillis();
		System.out.println(method.getName()+"程序结束执行");
		System.out.println(method.getName()+"程序执行时间："+(end-start));
	}

}
